package com.example.jpa.entity;

import lombok.Data;
import lombok.experimental.FieldNameConstants;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author  qilongxin
 * @date 2021/08/26 19:25 
 */

@DynamicInsert
@DynamicUpdate
@Data
@FieldNameConstants
@Entity
@Table (name = "user_inf")
public class UserInf implements Serializable {

	private static final long serialVersionUID =  1395451713607092047L;

   	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	private Long id;

   	@Column(name = "age")
	private Long age;

   	@Column(name = "gender")
	private String gender;

   	@Column(name = "name")
	private String name;

}
